import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/purchase/List',
    method: 'get',
    params
  })
}
export function getById(id) {
  return request({
    url: '/purchase/getById/'+id,
    method: 'get'
  })
}
export function getBillById(id) {
  return request({
    url: '/purchase/getBillById/'+id,
    method: 'get'
  })
}
export function updateBill(data) {
  return request({
    url: '/purchase/updateBill',
    method: 'post',
    data
  })
}
export function updateBillDetail(data) {
  return request({
    url: '/purchase/updateBillDetail',
    method: 'post',
    data
  })
}
export function Queryurcontact(data) {
  return request({
    url: '/purchase/queryBy',
    method: 'post',
    data
  })
}

export function addPurcontact(data) {
  return request({
    url: '/purchase/add',
    method: 'post',
    data
  })
}

export function addPurBill(data) {
  return request({
    url: '/purchase/addBill',
    method: 'post',
    data
  })
}
export function addPurBill1(data) {
  return request({
    url: '/purchase/addBill1',
    method: 'post',
    data
  })
}
export function UpdatePurcontact(data) {
  return request({
    url: '/purchase/update',
    method: 'post',
    data
  })
}
